<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <div class="panel-lead"><em>佣金/保价金额配置</em></div>

    </div>

    <div class="panel-body">
        <div class="widget-body no-padding">
            <form id="one-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2" style="width: 155px;">佣金结算方式：</label>
                    <div class="col-xs-12 col-sm-8">
                        {:build_radios('row[pay_type]', ['1'=>__('线下结算')],$pay_type)}
                    </div>
                </div>


                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2" style="width: 155px;">最小提现金额(元)：</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-min_extract_money" data-rule="required" class="form-control" name="row[min_extract_money]" value="{$min_extract_money}" type="number" style="width: 300px;">
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2" style="width: 155px;">提现手续费(%)：</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-fee_scale" data-rule="required" class="form-control" name="row[fee_scale]"  value="{$fee_scale}" type="number" style="width: 300px;">
                    </div>
                </div>

                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2" style="width: 155px;">保价金额比例(%)：</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-bprice_scale" data-rule="required" class="form-control" name="row[bprice_scale]"  value="{$bprice_scale}" type="number" style="width: 300px;">
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-xs-12 col-sm-12">
                        <table class="table table-responsive">
                            <tr style="background: #eee">
                                <td style="width: 145px;">服务类型</td>
                                <td style="width: 156px;">骑手佣金比例（%）</td>
                                <td></td>
                            </tr>
                            {foreach name="scaleList" id="general"}
                            <tr class="form-inline">
                                <td style="width: 90px;line-height: 30px;">{$general['type_name']}：</td>
                                <td style="width: 116px;"><input type="number" style="width: 100px;" name="row[scale][{$general['id']}]" class="form-control" value="{$general['scale']}" size="10"></td>
                                <td></td>
                            </tr>
                            {/foreach}

                        </table>

                    </div>
                </div>

                <div class="form-group layer-footer">
                    <label class="control-label col-xs-12 col-sm-2"></label>
                    <div class="col-xs-12 col-sm-8">
                        <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                        <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                    </div>
                </div>
            </form>

        </div>
    </div>
</div>
